//
// CPatchBlockIdent.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class CPatchBlockIdent {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CPatchBlockIdent(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CPatchBlockIdent obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CPatchBlockIdent(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setPatchId(CPatchIdent value) {
    nel3dJNI.CPatchBlockIdent_PatchId_set(swigCPtr, this, CPatchIdent.getCPtr(value), value);
  }

  public CPatchIdent getPatchId() {
    long cPtr = nel3dJNI.CPatchBlockIdent_PatchId_get(swigCPtr, this);
    return (cPtr == 0) ? null : new CPatchIdent(cPtr, false);
  }

  public void setOrderS(short value) {
    nel3dJNI.CPatchBlockIdent_OrderS_set(swigCPtr, this, value);
  }

  public short getOrderS() {
    return nel3dJNI.CPatchBlockIdent_OrderS_get(swigCPtr, this);
  }

  public void setOrderT(short value) {
    nel3dJNI.CPatchBlockIdent_OrderT_set(swigCPtr, this, value);
  }

  public short getOrderT() {
    return nel3dJNI.CPatchBlockIdent_OrderT_get(swigCPtr, this);
  }

  public void setS0(short value) {
    nel3dJNI.CPatchBlockIdent_S0_set(swigCPtr, this, value);
  }

  public short getS0() {
    return nel3dJNI.CPatchBlockIdent_S0_get(swigCPtr, this);
  }

  public void setS1(short value) {
    nel3dJNI.CPatchBlockIdent_S1_set(swigCPtr, this, value);
  }

  public short getS1() {
    return nel3dJNI.CPatchBlockIdent_S1_get(swigCPtr, this);
  }

  public void setT0(short value) {
    nel3dJNI.CPatchBlockIdent_T0_set(swigCPtr, this, value);
  }

  public short getT0() {
    return nel3dJNI.CPatchBlockIdent_T0_get(swigCPtr, this);
  }

  public void setT1(short value) {
    nel3dJNI.CPatchBlockIdent_T1_set(swigCPtr, this, value);
  }

  public short getT1() {
    return nel3dJNI.CPatchBlockIdent_T1_get(swigCPtr, this);
  }

  public boolean isEqual(CPatchBlockIdent pb) {
    return nel3dJNI.CPatchBlockIdent_isEqual(swigCPtr, this, CPatchBlockIdent.getCPtr(pb), pb);
  }

  public boolean notEqual(CPatchBlockIdent pb) {
    return nel3dJNI.CPatchBlockIdent_notEqual(swigCPtr, this, CPatchBlockIdent.getCPtr(pb), pb);
  }

  public boolean lt(CPatchBlockIdent pb) {
    return nel3dJNI.CPatchBlockIdent_lt(swigCPtr, this, CPatchBlockIdent.getCPtr(pb), pb);
  }

  public boolean lte(CPatchBlockIdent pb) {
    return nel3dJNI.CPatchBlockIdent_lte(swigCPtr, this, CPatchBlockIdent.getCPtr(pb), pb);
  }

  public boolean gt(CPatchBlockIdent pb) {
    return nel3dJNI.CPatchBlockIdent_gt(swigCPtr, this, CPatchBlockIdent.getCPtr(pb), pb);
  }

  public boolean gte(CPatchBlockIdent pb) {
    return nel3dJNI.CPatchBlockIdent_gte(swigCPtr, this, CPatchBlockIdent.getCPtr(pb), pb);
  }

  public CPatchBlockIdent() {
    this(nel3dJNI.new_CPatchBlockIdent(), true);
  }

}
